package hoyo.zqy.user.service;

import hoyo.zqy.user.domain.User;
import hoyo.zqy.basic.service.IBaseService;

import javax.mail.MessagingException;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqy
 * @since 2022-11-04
 */
public interface IUserService extends IBaseService<User> {
    /**
     * 手机注册
     * @param map
     */
    void phoneRegister(Map<String, String> map);

    /**
     * 邮箱注册
     * @param map
     */
    void emailRegister(Map<String, String> map) throws MessagingException;

    /**
     * 用户邮箱激活
     * @param id
     */
    void active(Long id);
}
